package form.ui.component.Select {
	import flash.events.Event;
	
	import form.events.DropDownButtonEvent;
	import form.ui.assets.Compiled;
	import form.ui.core.Button;
	import form.ui.core.FMSprite;

	public class DropDownButton extends Button {
		public static const RIGHT_BUTTON_WIDTH:int = 23;
		
		public function DropDownButton() {
			super();

			this.mouseUp = new Compiled.DropDownButtonUp();
			this.mouseOver = new Compiled.DropDownButtonOver();
			this.mouseDown = new Compiled.DropDownButtonDown();
			this.disabled = new Compiled.DropDownButtonDisabled();
			
			this.enable();
		}
		
		protected override function onAddedToStage(e:Event):void {}
		
		public override function mouseDownAction():void {
			var e:DropDownButtonEvent = new DropDownButtonEvent(DropDownButtonEvent.CLICKED);
			
			this.dispatchEvent(e);
		}
		
	}
}